{% extends 'users/base.html' %} {% block title %}Delete Role: {{ object.name }}{% endblock %} {% block card_content %}

Warning!

You are about to delete the role {{ object.name }}. This action cannot be undone.

{% if object.user_set.exists %}

This will affect the following users:

{% endif %}
Role Details
Name {{ object.name }}
Permissions {% if object.permissions.all %}
{% for perm in object.permissions.all|slice:":5" %} {{ perm.name }} {% endfor %} {% if object.permissions.count > 5 %} +{{ object.permissions.count|add:"-5" }} more {% endif %}
{% else %} No permissions {% endif %}
Users with this role {{ object.user_set.count }} user{{ object.user_set.count|pluralize }}
Created {{ object.created_at|date:"F j, Y, P" }}
{% csrf_token %}
Cancel
{% endblock %}